package com.sqfw.project.wp.service.impl;

import java.util.List;
import com.sqfw.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sqfw.project.wp.mapper.WpReceiveLogMapper;
import com.sqfw.project.wp.domain.WpReceiveLog;
import com.sqfw.project.wp.service.IWpReceiveLogService;

/**
 * 12345接收反馈日志Service业务层处理
 * 
 * @author lx
 * @date 2023-07-04
 */
@Service
public class WpReceiveLogServiceImpl implements IWpReceiveLogService 
{
    @Autowired
    private WpReceiveLogMapper wpReceiveLogMapper;

    /**
     * 查询12345接收反馈日志
     * 
     * @param id 12345接收反馈日志主键
     * @return 12345接收反馈日志
     */
    @Override
    public WpReceiveLog selectWpReceiveLogById(Long id)
    {
        return wpReceiveLogMapper.selectWpReceiveLogById(id);
    }

    /**
     * 查询12345接收反馈日志列表
     * 
     * @param wpReceiveLog 12345接收反馈日志
     * @return 12345接收反馈日志
     */
    @Override
    public List<WpReceiveLog> selectWpReceiveLogList(WpReceiveLog wpReceiveLog)
    {
        return wpReceiveLogMapper.selectWpReceiveLogList(wpReceiveLog);
    }

    /**
     * 新增12345接收反馈日志
     * 
     * @param wpReceiveLog 12345接收反馈日志
     * @return 结果
     */
    @Override
    public int insertWpReceiveLog(WpReceiveLog wpReceiveLog)
    {
        wpReceiveLog.setCreateTime(DateUtils.getNowDate());
        return wpReceiveLogMapper.insertWpReceiveLog(wpReceiveLog);
    }

    /**
     * 修改12345接收反馈日志
     * 
     * @param wpReceiveLog 12345接收反馈日志
     * @return 结果
     */
    @Override
    public int updateWpReceiveLog(WpReceiveLog wpReceiveLog)
    {
        return wpReceiveLogMapper.updateWpReceiveLog(wpReceiveLog);
    }

    /**
     * 批量删除12345接收反馈日志
     * 
     * @param ids 需要删除的12345接收反馈日志主键
     * @return 结果
     */
    @Override
    public int deleteWpReceiveLogByIds(Long[] ids)
    {
        return wpReceiveLogMapper.deleteWpReceiveLogByIds(ids);
    }

    /**
     * 删除12345接收反馈日志信息
     * 
     * @param id 12345接收反馈日志主键
     * @return 结果
     */
    @Override
    public int deleteWpReceiveLogById(Long id)
    {
        return wpReceiveLogMapper.deleteWpReceiveLogById(id);
    }
}
